package task

import "gitee.com/wcs2/common/enums"

type taskStatusStruct struct {
	NOT_BEGIN        enums.PositionEnum
	READY            enums.PositionEnum
	ON_GOING         enums.PositionEnum
	HI_COMPLETED     enums.PositionEnum
	COMPLETED        enums.PositionEnum
	CANCELLING       enums.PositionEnum
	CANCELLED        enums.PositionEnum
	ERROR            enums.PositionEnum
	WAITING_TRANSFER enums.PositionEnum
	START_TRANSFER   enums.PositionEnum
}

//任务状态枚举
var TaskStatusEnum = &taskStatusStruct{
	NOT_BEGIN: enums.PositionStruct{
		Code: "NOT_BEGIN",
		Des:  "未开始",
	}, READY: enums.PositionStruct{
		Code: "READY",
		Des:  "已就绪",
	}, ON_GOING: enums.PositionStruct{
		Code: "ON_GOING",
		Des:  "进行中（已开始）",
	}, HI_COMPLETED: enums.PositionStruct{
		Code: "HI_COMPLETED",
		Des:  "人工介入完成",
	}, COMPLETED: enums.PositionStruct{
		Code: "COMPLETED",
		Des:  "已完成",
	}, CANCELLING: enums.PositionStruct{
		Code: "CANCELLING",
		Des:  "取消中",
	}, CANCELLED: enums.PositionStruct{
		Code: "CANCELLED",
		Des:  "已取消",
	}, ERROR: enums.PositionStruct{
		Code: "ERROR",
		Des:  "异常",
	}, WAITING_TRANSFER: enums.PositionStruct{
		Code: "WAITING_TRANSFER",
		Des:  "等待移位",
	}, START_TRANSFER: enums.PositionStruct{
		Code: "START_TRANSFER",
		Des:  "开始移位",
	},
}
